﻿using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;

namespace SWF
{
    public struct SetTarget : IAction
    {
        public ActionKind ActionId { get { return ActionKind.SetTarget; } }
        public uint Version { get { return 3; } }
        public string TargetName;
        public uint Length
        {
            get
            {
                return (uint)(3 + TargetName.Length + 1);
            }
        }

        public SetTarget(SwfReader r)
        {
            TargetName = r.GetString();
        }

        public void Execute(Runtime.Clip clip, Stack<object> stack, Dictionary<string, object> variables, List<string> constantPool, Dictionary<string, List<IAction>> functionmap)
        {
        }
    }
}
